package com.wwl.springcloud.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

/**
 * @author wwl
 * @version 1.0
 * @date 2021/8/9 17:16
 * @description:
 */
@RestController
@Slf4j
@Api(value = "/payment",description = "consul", tags = {"payment"})
public class PaymentController {
    @Value("${server.port}")
    private String serverPort;
    @PostMapping(value = "/consul")
    @ApiOperation("检测consul注册是否成功")
    public String paymentConsul(){
        return "sptingCloud with consul:"+serverPort+"\t"+ UUID.randomUUID().toString();
    }

}
